#include <iostream>
using namespace std;

#include "ThreadManager.h"
#include "TemperatureSensor_SCUT.h"
#include <vector>
#include <string>

int main()
{

    //int CollectFlag = COLLECTFREE;
    //int TerminalFlag = TERMINALFREE;
    //pthread_mutex_t ComLock = PTHREAD_MUTEX_INITIALIZER;

// datacollect test
//-----------------------------------------------
    CThreadManager Thread;
    Thread.Init();

    if(Thread.Run() == false)
        Thread.Cleanup();

//    CDataCollect a;
//    a.Init();

//    for(int i = 0; i < 2 ; i ++ )
//    {
//        a.Run(CollectFlag, TerminalFlag, ComLock);
//        sleep(1);
//    }
//    a.Cleanup();
//------------------------------------------------


    //CAirConditionTerminal_YL c;
    //c.Set(b, Cmd);
    //cout << b << endl;

//    string ID;
//    CInfoContainer * a = CInfoContainer::GetInstance();
//    a->Init();
//    a->GetZigBeeID("客房空调", ID);
//    cout << "ID" << ID << endl;
    return 0;
}
